package com.xiyu.service.enums.fee.recharge;

import com.xiyu.service.enums.fee.pay.FeePayTypeEnum;
import lombok.AllArgsConstructor;
import lombok.Getter;
import java.util.Arrays;
import com.xiyu.service.enums.common.IntArrayValuable;

/**
* 预充值明细状态
*/
@Getter
@AllArgsConstructor
public enum FeeRechargeDetailStatusEnum implements IntArrayValuable {

    /**
    * 待缴费
    */
    PENDING_PAYMENT(1, "待缴费"),
    /**
    * 已缴清
    */
    PAID_FULL(2, "已缴清"),
    /**
    * 已取消
    */
    CANCEL(3, "已取消"),
    /**
    * 已结算
    */
    SETTLED(4, "已结算");

    private final Integer value;

    private final String label;

    public static final int[] VALUES = Arrays.stream(values()).mapToInt(FeeRechargeDetailStatusEnum::getValue).toArray();

    @Override
    public int[] getValues() { return VALUES;}

    public static final String[] LABELS = Arrays.stream(values()).map(FeeRechargeDetailStatusEnum::getLabel).toArray(String[]::new);

    @Override
    public String[] getLabels() { return LABELS; }

}
